package com.lcc.codehelper.parse;

import com.lcc.codehelper.config.JAVAType;

public class JAVATypeConvert {

    public static String covertJavaType(String jdbcType){
        if(jdbcType.contains("TIMESTAMP")){
            return JAVAType.DATE;
        } else if("VARCHAR2".equals(jdbcType)){
            return JAVAType.STRING;
        }else if("NUMBER".equals(jdbcType)){
            return JAVAType.BIG_DECIMAL;
        }
        return JAVAType.STRING;
    }

}
